/// <reference path="../../oppo/system/OppoSystem.ts" />

namespace mplat {
    export class MzSystem extends OppoSystem {
        
        getLaunchOptionsSync(): any {
            debugLog('魅族没有实现 getLaunchOptionsSync')
            return {}
        }

        loadSubpackage(name: string, success: () => void, progress: (res: any) => void, fail?: () => void): void {
            if (!!success) success();
        }

        onShow(callback: Function) {
            window['mz'].onShow(callback);
        }
        offShow(callback: Function) {
            window['mz'].offShow(callback);
        }

        onHide(callback: Function) {
            window['mz'].onHide(callback);
        }
        offHide(callback: Function) {
            window['mz'].offHide(callback);
        }
    }
}